#add{:style=>'float:right;'}
  = image_tag "add.png"
  %span{:style=>'position:relative; top:-5px;'}= link_to "เพิ่มคำไม่สุภาพ", :action=>'new_vulgar'
%table{:class=>'index',:align=>'center'}
  %tr
    %th คำไม่สุภาพ
    %th คำทดแทน
    %th &nbsp;
  - @vulgars.each do |vulgar|
    %tr
      %td= vulgar.original
      %td= vulgar.alternate
      %td{:align=>'center'}= link_to image_tag('delete.png'), {:action=>'destroy_vulgar', :id=>vulgar.id}, :confirm=>"ลบคำไม่สุภาพ #{vulgar.original}"
